/*
 * @lc app=leetcode.cn id=706 lang=typescript
 *
 * [706] 设计哈希映射
 */

// @lc code=start
class MyHashMap {
    private map;
    constructor() {
        this.map = new Map();
    }

    put(key: number, value: number): void {
        this.map.set(key, value)
    }

    get(key: number): number {
        return this.map.get(key) === undefined ? -1 : this.map.get(key)
    }

    remove(key: number): void {
        this.map.delete(key);
    }
}

/**
 * Your MyHashMap object will be instantiated and called as such:
 * var obj = new MyHashMap()
 * obj.put(key,value)
 * var param_2 = obj.get(key)
 * obj.remove(key)
 */
// @lc code=end

